nl.justobjects.pushlet.core
Class EventPullSource

java.lang.Object
  extended by nl.justobjects.pushlet.core.EventPullSource
All Implemented Interfaces:
java.lang.Runnable, EventSource

public abstract class EventPullSource
extends java.lang.Object
implements EventSource, java.lang.Runnable

ABC for specifc EventPullSources.


Constructor Summary
EventPullSource()
           
 
Method Summary
 void activate()
          Activate the event generator thread.
 boolean isAlive()
           
 void passivate()
          Deactivate the event generator thread.
 void run()
          Main loop: sleep, generate event and publish.
 void start()
           
 void stop()
          Stop the event generator thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.justobjects.pushlet.core.EventSource
setServletContext
 

Constructor Detail

EventPullSource

public EventPullSource()
Method Detail

start

public void start()

isAlive

public boolean isAlive()

stop

public void stop()
Stop the event generator thread.

Specified by:
stop in interface EventSource

activate

public void activate()
Activate the event generator thread.

Specified by:
activate in interface EventSource

passivate

public void passivate()
Deactivate the event generator thread.

Specified by:
passivate in interface EventSource

run

public void run()
Main loop: sleep, generate event and publish.

Specified by:
run in interface java.lang.Runnable